from rest_framework.pagination import PageNumberPagination


class StaffInfoPagination(PageNumberPagination):
    """
    员工信息分页类
    """
    page_size = 10
    # 每页查询的参数名称
    page_query_param = "current_page"
    # 每页显示的个数
    page_size_query_param = 'page_size'


class PostInfoPagination(PageNumberPagination):
    """
    职位信息分页类
    """
    page_size = 10
    # 每页查询的参数名称
    page_query_param = "current_page"
    # 每页显示的个数
    page_size_query_param = 'page_size'
